<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<nav id="sidebar">
    <input id="context-path" type="hidden" value="${pageContext.request.contextPath}">
    <!-- Sidebar Header-->
    <div class="sidebar-header d-flex align-items-center">
        <div  class="avatar">
            <c:if test="${sessionScope.userInfo.pic ==''||sessionScope.userInfo.pic ==null}">
                <img id="avatar" src="${pageContext.request.contextPath}/img/avatar-6.jpg" alt="..." class="img-fluid rounded-circle">
            </c:if>
            <c:if test="${sessionScope.userInfo.pic !=''&&sessionScope.userInfo.pic !=null}">
                <img id="avatar" src="${sessionScope.userInfo.pic}" alt="..." class="img-fluid rounded-circle">
            </c:if>
        </div>
        <div class="title">
            <h1 class="h5">小标</h1>
            <p>研发部</p>
        </div>
    </div>
    <!-- Sidebar Navidation Menus--><span class="heading">Main</span>
    <ul class="list-unstyled">
        <li><a href="${pageContext.request.contextPath}/view/location/home"> <i class="icon-home"></i>主页 </a></li>
        <li><a href="#userDropdown"  data-toggle="collapse" aria-expanded="true"> <i class="icon-windows"></i>用户列表</a>
            <ul id="userDropdown" class="collapse show">
                <li class="active"><a href="${pageContext.request.contextPath}/user/findPage?currPage=1">查看用户</a></li>
                <li><a href="${pageContext.request.contextPath}/user/my_user">我关注的用户</a></li>
                <li><a href="${pageContext.request.contextPath}/article/article">发布文章</a></li>
                <li><a href="${pageContext.request.contextPath}/user/article_collect">我的收藏</a></li>
            </ul>
        </li>
        <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->

        <li><a href="#depDropdown"  data-toggle="collapse"> <i class="icon-windows2"></i>部门列表</a>
            <ul id="depDropdown" class="collapse list-unstyled ">
                <li><a href="${pageContext.request.contextPath}/dept/look_dept">全部部门</a></li>
                <li><a href="${pageContext.request.contextPath}/meet/meeting">会议系统</a></li>
            </ul>
        </li>

    </ul>

</nav>
